package com.bt.dmdb.model;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "ODS_DM_PPR_DATA")
@SuppressWarnings("serial")
public class PprData implements java.io.Serializable {

    private PprDataId id;

    public PprData() {
    }

    public PprData(PprDataId id) {
        this.id = id;
    }

    @EmbeddedId
    @AttributeOverrides({ @AttributeOverride(name = "ordKey", column = @Column(name = "ORD_KEY", scale = 0)), @AttributeOverride(name = "orderId", column = @Column(name = "ORDER_ID", scale = 0)), @AttributeOverride(name = "orderType", column = @Column(name = "ORDER_TYPE")), @AttributeOverride(name = "orderVersion", column = @Column(name = "ORDER_VERSION")), @AttributeOverride(name = "orderDate", column = @Column(name = "ORDER_DATE", length = 7)), @AttributeOverride(name = "crd", column = @Column(name = "CRD", length = 7)), @AttributeOverride(name = "ccd", column = @Column(name = "CCD", length = 7)), @AttributeOverride(name = "completeDate", column = @Column(name = "COMPLETE_DATE", length = 7)), @AttributeOverride(name = "idd", column = @Column(name = "IDD")), @AttributeOverride(name = "system", column = @Column(name = "SYSTEM")), @AttributeOverride(name = "orderManager", column = @Column(name = "ORDER_MANAGER")), @AttributeOverride(name = "customerName", column = @Column(name = "CUSTOMER_NAME")), @AttributeOverride(name = "customerId", column = @Column(name = "CUSTOMER_ID", scale = 0)), @AttributeOverride(name = "siteName", column = @Column(name = "SITE_NAME")), @AttributeOverride(name = "siteId", column = @Column(name = "SITE_ID")), @AttributeOverride(name = "country", column = @Column(name = "COUNTRY")), @AttributeOverride(name = "serviceName", column = @Column(name = "SERVICE_NAME")), @AttributeOverride(name = "salesChannel", column = @Column(name = "SALES_CHANNEL")), @AttributeOverride(name = "salesChannelType", column = @Column(name = "SALES_CHANNEL_TYPE")), @AttributeOverride(name = "customerSignedDate", column = @Column(name = "CUSTOMER_SIGNED_DATE", length = 7)), @AttributeOverride(name = "orderStatus", column = @Column(name = "ORDER_STATUS")), @AttributeOverride(name = "orderItemStatus", column = @Column(name = "ORDER_ITEM_STATUS")), @AttributeOverride(name = "srvIdCpe", column = @Column(name = "SRV_ID_CPE")), @AttributeOverride(name = "srvIdAcc", column = @Column(name = "SRV_ID_ACC")), @AttributeOverride(name = "schInstallDate", column = @Column(name = "SCH_INSTALL_DATE", length = 7)), @AttributeOverride(name = "notifyCustSrvReadyDate", column = @Column(name = "NOTIFY_CUST_SRV_READY_DATE", length = 7)), @AttributeOverride(name = "ksuCompDate", column = @Column(name = "KSU_COMP_DATE", length = 7)), @AttributeOverride(name = "delayReason", column = @Column(name = "DELAY_REASON")), @AttributeOverride(name = "delayType", column = @Column(name = "DELAY_TYPE")), @AttributeOverride(name = "accOrderDate", column = @Column(name = "ACC_ORDER_DATE", length = 7)), @AttributeOverride(name = "accCommitDate", column = @Column(name = "ACC_COMMIT_DATE", length = 7)), @AttributeOverride(name = "accInstallDate", column = @Column(name = "ACC_INSTALL_DATE", length = 7)), @AttributeOverride(name = "cpeOrderDate", column = @Column(name = "CPE_ORDER_DATE", length = 7)), @AttributeOverride(name = "cpeCommitDate", column = @Column(name = "CPE_COMMIT_DATE", length = 7)), @AttributeOverride(name = "cpeInstallDate", column = @Column(name = "CPE_INSTALL_DATE", length = 7)), @AttributeOverride(name = "lastCrdChange", column = @Column(name = "LAST_CRD_CHANGE", length = 7)), @AttributeOverride(name = "noOfCrdChanges", column = @Column(name = "NO_OF_CRD_CHANGES", scale = 0)), @AttributeOverride(name = "orderItemId", column = @Column(name = "ORDER_ITEM_ID")), @AttributeOverride(name = "accProductName", column = @Column(name = "ACC_PRODUCT_NAME")), @AttributeOverride(name = "cpeProductName", column = @Column(name = "CPE_PRODUCT_NAME")), @AttributeOverride(name = "productType", column = @Column(name = "PRODUCT_TYPE")), @AttributeOverride(name = "parentProductName", column = @Column(name = "PARENT_PRODUCT_NAME")) })
    public PprDataId getId() {
        return this.id;
    }

    public void setId(PprDataId id) {
        this.id = id;
    }
}
